package com.zhhd.libdb;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity
public class PatrolRecord {

    /**
     * id : 97f467095ae74aa6f3358ab7e2f58072
     * patrolPlanId : 932b0184854b89f1dba2b2e9af53d08a
     * patrolPlanName : 测试巡更1
     * patrolPointId : 9B83C9CE
     * patrolPointName : 移动测试巡更点4
     * patrolPersonId : null
     * patrolPersonName : null
     * patrolDeptID : null
     * patrolDeptName : null
     * planTimeStart : 2025-10-17 14:21:19
     * planTimeEnd : 2025-10-17 18:21:21
     * patrolTime : null
     * patrolStatus : 0
     */
    @PrimaryKey
    private Long longId;
    @ColumnInfo(name = "serverId")
    private String id;
    @ColumnInfo(name = "patrolPlanId")
    private String patrolPlanId;
    /**
     * 巡更计划名称
     */
    @ColumnInfo(name = "patrolPlanName")
    private String patrolPlanName;
    /**
     * 巡更点 卡片号
     */
    @ColumnInfo(name = "patrolPointId")
    private String patrolPointId;
    /**
     * 巡更点 名称
     */
    @ColumnInfo(name = "patrolPointName")
    private String patrolPointName;
    /**
     * 巡更点 巡更人ID
     */
    @ColumnInfo(name = "patrolPersonId")
    private String patrolPersonId;
    /**
     * 巡更点 巡更人名称
     */
    @ColumnInfo(name = "patrolPersonName")
    private String patrolPersonName;
    @ColumnInfo(name = "patrolDeptID")
    private String patrolDeptID;
    @ColumnInfo(name = "patrolDeptName")
    private String patrolDeptName;
    @ColumnInfo(name = "planTimeStart")
    private String planTimeStart;
    @ColumnInfo(name = "planTimeEnd")
    private String planTimeEnd;
    @ColumnInfo(name = "patrolTime")
    private String patrolTime;
    // 判断巡更状态-//0未巡 1已巡 2缺巡 3晚巡 4早巡-返回0时也代表巡更失败
    @ColumnInfo(name = "patrolStatus")
    private int patrolStatus;

    @Override
    public String toString() {
        return "PatrolRecord{" +
                "longId='" + longId + '\'' +
                ", id='" + id + '\'' +
                ", patrolPlanId='" + patrolPlanId + '\'' +
                ", patrolPlanName='" + patrolPlanName + '\'' +
                ", patrolPointId='" + patrolPointId + '\'' +
                ", patrolPointName='" + patrolPointName + '\'' +
                ", patrolPersonId='" + patrolPersonId + '\'' +
                ", patrolPersonName='" + patrolPersonName + '\'' +
                ", patrolDeptID='" + patrolDeptID + '\'' +
                ", patrolDeptName='" + patrolDeptName + '\'' +
                ", planTimeStart='" + planTimeStart + '\'' +
                ", planTimeEnd='" + planTimeEnd + '\'' +
                ", patrolTime='" + patrolTime + '\'' +
                ", patrolStatus=" + patrolStatus +
                '}';
    }

    public Long getLongId() {
        return longId;
    }

    public void setLongId(Long longId) {
        this.longId = longId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPatrolPlanId() {
        return patrolPlanId;
    }

    public void setPatrolPlanId(String patrolPlanId) {
        this.patrolPlanId = patrolPlanId;
    }

    public String getPatrolPlanName() {
        return patrolPlanName;
    }

    public void setPatrolPlanName(String patrolPlanName) {
        this.patrolPlanName = patrolPlanName;
    }

    public String getPatrolPointId() {
        return patrolPointId;
    }

    public void setPatrolPointId(String patrolPointId) {
        this.patrolPointId = patrolPointId;
    }

    public String getPatrolPointName() {
        return patrolPointName;
    }

    public void setPatrolPointName(String patrolPointName) {
        this.patrolPointName = patrolPointName;
    }

    public String getPatrolPersonId() {
        return patrolPersonId;
    }

    public void setPatrolPersonId(String patrolPersonId) {
        this.patrolPersonId = patrolPersonId;
    }

    public String getPatrolPersonName() {
        return patrolPersonName;
    }

    public void setPatrolPersonName(String patrolPersonName) {
        this.patrolPersonName = patrolPersonName;
    }

    public String getPatrolDeptID() {
        return patrolDeptID;
    }

    public void setPatrolDeptID(String patrolDeptID) {
        this.patrolDeptID = patrolDeptID;
    }

    public String getPatrolDeptName() {
        return patrolDeptName;
    }

    public void setPatrolDeptName(String patrolDeptName) {
        this.patrolDeptName = patrolDeptName;
    }

    public String getPlanTimeStart() {
        return planTimeStart;
    }

    public void setPlanTimeStart(String planTimeStart) {
        this.planTimeStart = planTimeStart;
    }

    public String getPlanTimeEnd() {
        return planTimeEnd;
    }

    public void setPlanTimeEnd(String planTimeEnd) {
        this.planTimeEnd = planTimeEnd;
    }

    public String getPatrolTime() {
        return patrolTime;
    }

    public void setPatrolTime(String patrolTime) {
        this.patrolTime = patrolTime;
    }

    public int getPatrolStatus() {
        return patrolStatus;
    }

    public void setPatrolStatus(int patrolStatus) {
        this.patrolStatus = patrolStatus;
    }
}
